package com.dimples.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dimples.common.page.metadata.Page;
import com.dimples.system.entity.SysUser;
import com.dimples.system.vo.UserVO;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2021/7/18
 */
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 查询用户
     *
     * @param page    Page<SysUser>
     * @param sysUser SysUser
     * @return List<SysUser>
     */
    List<SysUser> findUser(@Param("page") Page<SysUser> page, @Param("sysUser") SysUser sysUser);

    /**
     * 获取用户信息
     *
     * @param userId Long
     * @return UserVO
     */
    UserVO getUser(@Param("userId") Long userId);
}